package com.lwt.service;

import java.util.List;
import java.util.Map;
import com.lwt.model.District;
import com.lwt.model.House;
import com.lwt.model.Street;
import com.lwt.model.Types;
import com.lwt.util.Page;

public interface HouseService {
	/**
	 * 增加租房信息
	 * @param house
	 * @return
	 */
	public boolean addHouse(House house);
	/**
	 * 删除租房信息
	 * @param house
	 * @return
	 */
	public boolean deleteHouse(House house);
	/**
	 * 查询租房信息
	 * @param id
	 * @return
	 */
	public Map<String ,Object> showHouseById(House house);
	/**
	 * 更新租房信息
	 * @param house
	 * @return
	 */
	public boolean updateHouse(House house);
	
	/**
	 * 根据区域id获取区域下所有街道
	 * @param did
	 * @return
	 */
	public List<Street> showAllStreetByDid(Street street);

	/**
	 * 获取所有区域
	 * @return
	 */
	public List<District> showAllDistrict();
	/**
	 * 获取所有房型
	 * @return
	 */
	public List<Types> showAllTypes();
	/**
	 * 模糊查询
	 * @param house
	 * @return
	 */
	public Page getLikeHouse(Map<String,Object> houseinfo);
	
}
